package com.springboot.jdbc.service.impl;

import com.springboot.jdbc.dao.IUserDao;
import com.springboot.jdbc.model.User;
import com.springboot.jdbc.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

/**
 * @author liuwei
 * @version 2017/7/16 上午11:23
 * @modified TODO
 * @description 功能描述
 * @see
 * @since 1.0
 */
@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private IUserDao userDao;

    @Override
    public User findById(Long id) {
        return userDao.findById(id);
    }

    @Override
    public Long save(User user) {
        return userDao.save(user);
    }

    @Override
    public Boolean update(User user) {
        return userDao.update(user);
    }

    @Override
    public Boolean remove(Long id) {
        return null;
    }
}
